<script setup lang="ts">
let props = defineProps(['pageNow','pageSize'])
let $emit = defineEmits(['update:pageNow','update:pageSize'])
const handler1 = () => {
  $emit('update:pageNow',props.pageNow+1);
}
const handler2 = () => {
  $emit('update:pageSize',props.pageSize+6);
}

</script>

<template>
<div class="child1">
  <h1>同时绑定多个数据</h1>
  <button @click="handler1">pageNow{{pageNow}}</button>
  <button @click="handler2">pageSize{{pageSize}}</button>
</div>
</template>

<style scoped>
.child1 {
  height: 400px;
  background: skyblue;
}
</style>